# -*— coding: utf-8 -*-
#
# @Time : 2023/09/11 1:28
# @Author : LeeLU
# @File : readyaml.py
# @IDE : PyCharm
# @Email : luxuan888@vip.qq.com
# @Wechat : qianyongbuwan
import yaml
from config.conf import ConfigManager
def read_yaml():
    with open(ConfigManager.YAML_DATA_FILE, encoding='UTF8') as f:
        return yaml.safe_load(f)
def read_yaml_mysql():
    with open(ConfigManager.MYSQLDATA, encoding='UTF8') as f:
        return yaml.safe_load(f)


# if __name__ == '__main__':
#     print(read_yaml_mysql())
#     a=read_yaml_mysql().get('IP')
#     print(a)
#     print(type(read_yaml_mysql()))
